<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
    <meta content="IE=8" http-equiv="X-UA-Compatible" />
    <title>{%manage} &lsaquo; {&site_name}</title>
    <link rel="stylesheet" type="text/css" href="{*__CURRENT__}/../base.css" />
    <link rel="stylesheet" type="text/css" href="{*__CURRENT__}/admin.css" />
    <link rel="stylesheet" type="text/css" href="{*__CURRENT__}/../widgets.css" />
    <script type="text/javascript" src="{*__CURRENT__}/../mootools.js"></script>
    <script type="text/javascript" src="{*__CURRENT__}/../mootools-more.js"></script>
    <script type="text/javascript">
        var _TMPL_="__TMPL__";
        var _APP_="__APP__";
        var _URL_="__URL__";
        <present name="goLink">var _goLink="{$goLink}";</present>
        var Lang=<?php echo json_encode(include(LANG_PATH.LANG_SET.'/js.php'));?>;
        var Regexs=<?php echo json_encode(getJsRegexs());?>
    </script>
    <script type="text/javascript" src="{*__CURRENT__}/admin.js"></script>
    <script type="text/javascript" src="{*__CURRENT__}/../widgets.js"></script>
</head>
<body>
    <?php
    $b = $_SESSION[C('user_auth_key')];
    $user = $b['user'];
    ?>
    <div id="yahead">
        <div id="func">
            <div id="links">
                <b>{$user.account}</b>
                <a href="__APP__" target="_blank">{%site_index}</a>
                <a href="__URL__/portal" target="mainFrame" >{%admin_index}</a>
                <a href="__URL__/profile" target="mainFrame" >{%settings}</a>
                <a href="__APP__/Public/logout">{%signout}</a>
            </div>
            <div id="searchArea">
                <form id="searchForm" method="get" action="__URL__" target="mainFrame">
                    <input type="hidden" name="pagetype" value="query"/>
                    <input type="text" name="q" class="textInput" id="searchInput" style="color:#000"/>
                    <button id="searchBtn" disabled class="btn" type="button" style="width:86px;text-align:center">查找...</button>
                    <button id="searchAdvanced" class="btn" disabled type="button">高级查找</button>
                </form>
            </div>
            <script type="text/javascript">
            </script>
        </div>
        <div id="siteName">{&site_name}</div>
    </div>
    <div id="yabody" class="clearfix">
        <div id="left">
            <div id="menuWrapper">
                <div id="menuTop">&nbsp;</div>
                <ul class="menu1">
                    <li class="pSystem"><img src="{*__CURRENT__}/img/collapsed.gif" /><a>系统管理</a></li>
                </ul>
                <ul class="menu2">
                    <li><a id="pUser_index" href="__APP__/pUser/index"><span>用户管理</span></a></li>
                    <li><a id="pMedia_index" href="__APP__/pMedia/index"><span>媒体管理</span></a></li>
                    <li><a id="pMedia_index" href="__APP__/pConfig/index"><span>系统设置</span></a></li>
                </ul>
                <ul class="menu1">
                    <li class="pCategory"><img src="{*__CURRENT__}/img/collapsed.gif" /><a>栏目管理</a></li>
                </ul>
                <ul class="menu2">
                    <li><a id="pCategory_index" href="__APP__/pCategory/index"><span>栏目列表</span></a></li>
                    <li><a id="pCategory_add" href="__APP__/pCategory/add"><span>添加栏目</span></a></li>
                    <li><a id="pCategory_allocate" href="__APP__/pCategory/allocate"><span>栏目授权</span></a></li>
                </ul>
                <ul class="menu1">
                    <li class="pContent"><img src="{*__CURRENT__}/img/collapsed.gif" /><a>内容管理</a></li>
                </ul>
                <ul class="menu2">
                    <li><a id="pContent_index" href="__APP__/pContent/index"><span>文档列表</span></a></li>
                    <li><a id="pContent_add" href="__APP__/pContent/add"><span>添加文档</span></a></li>
                </ul>
                <div id="menuBottom">&nbsp;</div>
            </div>
        </div>
        <div id="right">
           <iframe frameborder="no" style="width: 100%; height: 100%;" scrolling="auto" id="mainFrame" name="mainFrame" src="__URL__/portal"></iframe>
        </div>
    </div>
    <div id="__msg_mask__" class="opacity80"></div>
    <div id="__msg__" class="opacity100"></div>
    <span id="__fixedmsg__"></span>
</body>
</html>
